package com.league.blog.mapper;

import com.league.blog.pojo.Menu;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    Menu selectByParentKey(Integer pid);

    Menu selectRootMenu();

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);
}